<%-- 
    Document   : index
    Created on : 2011-3-14, 23:48:52
    Author     : Administrator
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
 d
<html>   
    <head>
        <script language="javascript">
            function checkForm(){
                var value  = document.getElementById("tr1").value;
                if(value!=null){
                    document.getElementById("tr1").style.visibility = "hidden";
                     document.getElementById("bt").style.visibility = "hidden";
                }
                demoHTML.innerHTML=value;


            }
        </script>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <table width="900" border="1" align="center" bordercolor="#CCCCCC" style="border-collapse:collapse">
            <tr >
                <td>
                    <div id="demoHTML"> <input type="text" id="tr1"  size="11" ><input type="submit" id="bt" onclick="checkForm();" ></div>

                 </td>
            </tr>
            


        </table>
    </body>
</html>
